package com.hellohu.base;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExampleBaseMapper<MODEL, ID, EXAMPLE> {

    int deleteByPrimaryKey(ID id);

    int insert(MODEL record);

    int insertSelective(MODEL record);

    MODEL selectByPrimaryKey(ID id);

    int updateByPrimaryKeySelective(MODEL record);

    int updateByPrimaryKey(MODEL record);

    long countByExample(EXAMPLE example);

    int deleteByExample(EXAMPLE example);

    int updateByExampleSelective(@Param("record") MODEL record, @Param("example") EXAMPLE example);

    int updateByExample(@Param("record") MODEL record, @Param("example") EXAMPLE example);

    List<MODEL> selectByExample(EXAMPLE example);

}
